package com.flection.summer.entity;

import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * 
 * @author thnl
 *
 */
public class VersionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	private String appName;

	private String hostInfo;

	private String version;

	private String enabled;

	private String priority;

	private List<VersionEntity> linkVersions;

	public String getAppName() {
		return appName;
	}

	public VersionEntity setAppName(String appName) {
		this.appName = appName;
		return this;
	}

	public String getHostInfo() {
		return hostInfo;
	}

	public VersionEntity setHostInfo(String hostInfo) {
		this.hostInfo = hostInfo;
		return this;
	}

	public String getVersion() {
		return version;
	}

	public VersionEntity setVersion(String version) {
		this.version = version;
		return this;
	}

	public String getEnabled() {
		return enabled;
	}

	public VersionEntity setEnabled(String enabled) {
		this.enabled = enabled;
		return this;
	}

	public String getPriority() {
		return priority;
	}

	public VersionEntity setPriority(String priority) {
		this.priority = priority;
		return this;
	}

	public List<VersionEntity> getLinkVersions() {
		return linkVersions;
	}

	public VersionEntity setLinkVersions(List<VersionEntity> linkVersions) {
		this.linkVersions = linkVersions;
		return this;
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	@Override
	public String toString() {
		return "VersionEntity [version=" + version + ", enabled=" + enabled + ", priority=" + priority
				+ ", linkVersions=" + linkVersions + "]";
	}

}
